package org.shop.dao;

import java.util.List;
import java.util.Map;

import org.shop.dao.base.BaseDaoMapper;
import org.shop.entity.LoginRecord;

public interface LoginRecordMapper extends BaseDaoMapper<LoginRecord, Long>{
	
	/**
	 * 获取登录记录信息
	 * @param paramMap
	 * @return
	 */
	public List<Map<String,Object>> getLoginRecordInfo(Map<String,Object> paramMap);
	/**
	 * 获取登录记录信息条数
	 * @param paramMap
	 * @return
	 */
	public int getLoginRecordInfoCount(Map<String,Object> paramMap);
	
	/**
	 * 根据用户Id删除最近一年以前的登录记录
	 * @param paramMap
	 * @return
	 */
	public int delLoginRecordOfYearByUserId(Map<String,Object> paramMap);
	
}